package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CPrepareNomalMessage extends AbstractS2CMessage {
	private String playerId;
	private short x;
	private short y;

	public S2CPrepareNomalMessage(String playerId, short x, short y) {
		this.playerId = playerId;
		this.x = x;
		this.y = y;
	}

	@Override
	protected void writeMessage() {
		writeString(this.playerId);
		writeShort(x);
		writeShort(y);
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_PREPAER_NOMAL;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}

	public void setX(short x) {
		this.x = x;
	}

	public void setY(short y) {
		this.y = y;
	}

}
